package com.lmm.rpc.server.autoconfig;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @title: RpcServerProperties
 * @Description: 服务提供者配置文件
 * @Author Lmm
 * @Date: 2022/10/9 11:16
 * @Version 1.0
 */
@ConfigurationProperties(
        prefix = "rpc.server"
)
@Data
public class RpcServerProperties {
    /**
     * 注册中心地址
     * */
    private String zkPath = "127.0.0.1:2181";

    /**
     * 环境
     * */
    private String env;

    /**
     * 权重
     * */
    private int weight;

    /**
     *端口
     * */
    private int port;

    /**
     * bossThreadCount
     * */
    private int bossThreadCount;


    /**
     * workThreadCount
     * */
    private int workThreadCount;
    /**
     * threadCount  业务线程数量
     * */
    private int threadCount;

    /**
     * 业务线程池工作队列长度
     * */
    private int workQueueLength;
}
